/**
 * 作者：陈文斌 on 2018/12/29.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:flutter/material.dart';
import 'package:crm/view/GesturePassword/gesture_password.dart';
import 'package:crm/viewModel/Login/login_view_model.dart';

class GesturePasswordSection extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _GesturePasswordSectionState();
}

class _GesturePasswordSectionState extends State<GesturePasswordSection> {
  @override
  Widget build(BuildContext context) {
    return Container(
      margin: const EdgeInsets.only(top: 32.0),
      child: GesturePassword(
        successCallback: (password) {
          LoginVM.crmLogin(
            context: context,
            password: 'password',
            loginType: 2,
          );
        },
        failCallback: () {},
      ),
    );
  }
}
